<template>
    <h2>我是Home的内容</h2>
</template>

<script>
    export default {
        name:'Home',
        mounted(){
            console.log('Home已挂载',this);
            window.HomeRoute = this.$route;
            window.HomeRouter = this.$router;
        },
        beforeDestroy(){
            console.log('Home即将销毁');
        }
    }
</script>

<style>

</style>